// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import Router from 'vue-router'

import 'jquery/dist/jquery.min.js'
import './assets/css/bootstrap.min.css'
import './assets/js/bootstrap.min.js'
import './assets/js/jquery.easing.min.js'
import './assets/js/jquery.lavalamp.min.js'
import './assets/css/animate.min.css'

// import marked from "marked"

import axios from 'axios'
// axios.defaults.timeout = 3000
Vue.prototype.$axios = axios

// 返回顶部动画库
import {TweenMax, Power2, TimelineLite} from "gsap"
import ScrollToPlugin from "gsap/ScrollToPlugin"

// 滚动动画
import {WOW} from 'wowjs'
new WOW().init();

// require('bootstrap')
Vue.use(Router)

// 设置为 false 以阻止 vue 在启动时生成生产提示。
Vue.config.productionTip = false

import routes from './routes'
// 设置路由规则
const router = new Router({
	routes,
	scrollBehavior (to, from, savedPosition) {
    	// return 期望滚动到哪个的位置
    	if (savedPosition) {
		    return savedPosition
		  } else {
		    return { x: 0, y: 0 }
		  }
  	}
})


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
